package com.sm.dao;

import java.util.List;

import com.sm.model.SecondDirectory;
import org.apache.ibatis.annotations.Param;

public interface SecondDirectoryMapper {
    int deleteByPrimaryKey(Integer secondDirectoryId);

    int insert(SecondDirectory record);

    int insertSelective(SecondDirectory record);

    SecondDirectory selectByPrimaryKey(Integer secondDirectoryId);

    int updateByPrimaryKeySelective(SecondDirectory record);

    int updateByPrimaryKey(SecondDirectory record);
    
    
    /**
     *	根据视频一级类别id查询其所有的二级类别。
     * @param firstDirectoryId
     * @return
     */
    List<SecondDirectory> selectSecondByFirstDirectory(@Param("firstDirectoryId")Integer firstDirectoryId);
    
}